package com.example.cmh.service.impl;

import com.example.cmh.mapper.PositionMapper;
import com.example.cmh.pojo.position;
import com.example.cmh.service.PositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class PositionServiceImpl implements PositionService {
    @Autowired
    private PositionMapper positionMapper;
    @Override
    public List<position> getAllPositions() {
        return positionMapper.getAllPositions();
    }
    @Override
    public position getPositionById(Integer positionId) {
        return positionMapper.getPositionById(positionId);
    }
    @Override
    public void addPosition(position position) {
        positionMapper.addPosition(position);
    }
    @Override
    public void updatePosition(position position) {
        positionMapper.updatePosition(position);
    }
    @Override
    public void deletePosition(Integer positionId) {
        positionMapper.deletePosition(positionId);
    }
} 